//
//  LoanRequestTools.m
//  JinFuThree
//
//  Created by 毛韶谦 on 2018/10/8.
//  Copyright © 2018年 毛韶谦. All rights reserved.
//

#import "LoanRequestTools.h"

@implementation LoanRequestTools

// finance/app/normal/loanSupermarketProduct


/**
 借*贷列表数据

 @param parameters 参数
 @param success 成功返回
 @param failure 失败返回
 */
+ (void)LoanSupermarkerProductWithParameters:(NSDictionary *)parameters  Success:(nonnull void (^)(_Nullable id responseObject))success Failure:(nonnull void(^)(_Nullable id responseObject,  NSError * _Nullable error))failure {
    
    NSString *url = [Common ServicesURL:@"/as/app/financial/loanSupermarketProduct"];
    [[RequestManager manager] HFQDataRequest_Mao:RequestMethodGet URLString:url parameters:parameters success:^(id  _Nullable responseObject) {
        
        NSDictionary *dataDic = responseObject;
        if ([[NSString stringWithFormat:@"%@",dataDic[@"code"]] isEqualToString:@"200"]) {
            success(responseObject);
        }else {
            failure(responseObject, nil);
        }
    } failure:^(id  _Nullable responseObject, NSError * _Nullable error) {
        
        failure(responseObject, error);
    }];
}


@end
